<template>
  <div>
     <div ref='msg'>内容</div>

     <button @click="Btn">修改内容</button>
   </div>
</template>
 
<script>
export default {
  name: "",
  components: {},
  props: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    Btn(){
      this.$refs.msg.innerHTML='goodBye,黄的芳'
    }
  }
};
</script>

<style scoped>
     
</style>